﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NugetPublishWizard.Models
{
    public class NugetDependencie
    {
        public string Id { get; set; }
        public string Version { get; set; }

        public override string ToString()
        {
            return string.Format("{0} ({1})", this.Id, this.Version);
        }

        public override bool Equals(object obj)
        {
            if (obj.GetType() == typeof(DBNull))
                return false;
            return (this.Id == ((NugetDependencie)obj).Id);
        }
    }
}
